﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Toolkit.Web.ViewComponents.WebAssetRegistrar
{
    public class WebAssetGroup : IWebAsset
    {
        public WebAssetGroup(string name, bool isPreConfigured)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException("name");
            }

            Name = name;
            IsPreConfigured = IsPreConfigured;
            Items = new List<WebAsset>();
        }

        public string Name
        {
            get;
            private set;
        }

        public bool IsPreConfigured
        {
            get;
            private set;
        }

        public string Version
        {
            get;
            set;
        }

        public bool Compress
        {
            get;
            set;
        }

        public IList<WebAsset> Items
        {
            get;
            private set;
        }
    }
}
